server {
    listen 80;
    server_name 43.142.83.163 10.0.4.16;
    proxy_buffer_size 4k;
    proxy_buffers 16 32k;
    proxy_busy_buffers_size 64k;
    proxy_temp_file_write_size 64k;
    proxy_read_timeout 180;
    proxy_redirect off;
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forward-For $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

    location / {
        root   /etc/nginx/html;
        index  index.html;
    }

    location /auth-center {
    	root /data/deploy/riptide-ui;
	index index.html;
    }

    location /christmas {
        root /data/deploy/riptide-ui;
        index index.html;
    }

    location /order-center {
    	root  /data/deploy/riptide-ui;
	index index.html;
    }

    location ^~/server-gateway/ {
    	proxy_pass http://10.0.4.16:9111;
    }

    location ^~/auth-admin/ {
        proxy_pass http://10.0.4.16:9111;
    }

    location ^~/auth-provider/ {
        proxy_pass http://10.0.4.16:9111;
    }

    location ^~/xxl-job-admin/ {
        proxy_pass http://127.0.0.1:8080;
    }

    location ^~/server-api-doc/ {
        proxy_pass http://10.0.4.16:9111;
    }

    location ^~/api/v1/christmas/ {
        proxy_pass http://10.0.4.16:9111;
    }
}
